<?php
error_reporting(E_ALL | E_STRICT);

date_default_timezone_set("Europe/Madrid");

session_start();

$site_path = realpath(dirname(__FILE__));
define ('__SITE_PATH', $site_path);
define ('__SITE_HOST', "http://".$_SERVER["HTTP_HOST"]."/proyecto");

include 'init.php';

$registry->router = new Router($registry);
$registry->router->setPath (__SITE_PATH . '/mvc/controlador');
$registry->template = new Template();
$registry->router->loader();
?>